<?php

if ( isset($_REQUEST["sid"]) )
{
	$userdata = session_pagestart($_REQUEST["sid"]);
	
	$userid = $userdata[0]['user_id'];
	$username = $userdata[0]['username'];
	$lastvisit = date("d/m/Y H:i:s",$userdata[0]['user_lastvisit']);
	
	$sql = "SELECT * FROM pctroubleshooting_topic";
	$rs = $link->execute($sql);
	$tmp = '
	<table width="100%" border="0" cellspacing="0" cellpadding="0" background="' . $info['template_image_path']. 'bg.gif)" align="center" style="background-position:center;background-repeat:no-repeat">
	';
	
	$tmp .= '<tr><td style="padding-top:3px; padding-bottom:3px" class="clsLang">&nbsp;
	<img src="' . $info['template_path'] . 'images/bullet.gif">&nbsp;Tên đăng nhập: <b>'. $username .'</b>
	</td></tr>';
	$tmp .= '<tr><td style="padding-top:3px; padding-bottom:3px" class="clsLang">&nbsp;
	<img src="' . $info['template_path'] . 'images/bullet.gif">&nbsp;Lần truy cập gần nhất:<br />&nbsp;&nbsp;<b>'. $lastvisit .'</b>
	</td></tr>';
	$tmp .= '<tr><td style="padding-top:3px; padding-bottom:3px" class="clsLang" align="center">&nbsp;
	<a href="4rum/login.php?logout=true&sid='.$_REQUEST["sid"].'&redirect=../index.php"><b>&raquo; Thoát quyền sử dụng &laquo;</b></a>
	</td></tr>';
	
	$tmp .= '</table>';
}
else
	$ignore = true;
$_blockTitle = 'Thông tin tài khoản';
$_blockContent = $tmp;
?>